<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">

       <el-form-item label="日期" prop="cDate">
              <el-date-picker
                v-model="queryParams.cDate"
                type="date"
                size="small"
                value-format="yyyy-MM-dd"
                @keyup.enter.native="handleQuery"
                placeholder="请输入查询日期">
              </el-date-picker>
            </el-form-item>


            <el-form-item>
              <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
              <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
            </el-form-item>
          </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['scrb:jh:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['scrb:jh:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['scrb:jh:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['scrb:jh:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="jhList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="日期" align="center" prop="cDate" />
      <el-table-column label="1#2#焦炉灰分高/低" align="center" prop="c1ljHfGd" />
      <el-table-column label="1#2#焦炉灰分均值" align="center" prop="c1ljHfJz" />
      <el-table-column label="1#2#焦炉硫分高/低" align="center" prop="c1ljLfGd" />
      <el-table-column label="1#2#焦炉硫分均值" align="center" prop="c1ljLfJz" />
      <el-table-column label="1#2#焦炉M40高/低" align="center" prop="c1ljM40Gd" />
      <el-table-column label="1#2#焦炉M40均值" align="center" prop="c1ljM40Jz" />
      <el-table-column label="1#2#焦炉M10高/低" align="center" prop="c1ljM10Gd" />
      <el-table-column label="1#2#焦炉M10均值" align="center" prop="c1ljM10Jz" />
      <el-table-column label="1#2#焦炉水分高/低" align="center" prop="c1ljSfGd" />
      <el-table-column label="1#2#焦炉水分均值" align="center" prop="c1ljSfJz" />
      <el-table-column label="1#2#焦炉挥发分高/低" align="center" prop="c1ljHffGd" />
      <el-table-column label="1#2#焦炉挥发分均值" align="center" prop="c1ljHffJz" />
      <el-table-column label="1#2#焦炉焦末含量高/低" align="center" prop="c1ljJmhlGd" />
      <el-table-column label="1#2#焦炉焦末含量均值" align="center" prop="c1ljJmhlJz" />
      <el-table-column label="1#2#焦炉电耗" align="center" prop="c1ljNydhDh" />
      <el-table-column label="1#2#焦炉燃耗" align="center" prop="c1ljNydhRh" />
      <el-table-column label="1#2#焦炉水耗" align="center" prop="c1ljNydhSh" />
      <el-table-column label="1#2#焦炉当日炉数" align="center" prop="c1ljLsDr" />
      <el-table-column label="1#2#焦炉当日炉数" align="center" prop="c1ljLsLj" />
      <el-table-column label="1#焦炉热工系数K安" align="center" prop="c1ljRgxs1lka" />
      <el-table-column label="2#焦炉热工系数K安" align="center" prop="c1ljRgxs2lka" />
      <el-table-column label="1#焦炉热工系数K均" align="center" prop="c1ljRgxs1lkj" />
      <el-table-column label="2#焦炉热工系数K均" align="center" prop="c1ljRgxs2lkj" />
      <el-table-column label="5#6#焦炉灰分高/低" align="center" prop="c3ljHfGd" />
      <el-table-column label="5#6#焦炉灰分均值" align="center" prop="c3ljHfJz" />
      <el-table-column label="5#6#焦炉硫分高/低" align="center" prop="c3ljLfGd" />
      <el-table-column label="5#6#焦炉硫分均值" align="center" prop="c3ljLfJz" />
      <el-table-column label="5#6#焦炉M40高/低" align="center" prop="c3ljM40Gd" />
      <el-table-column label="5#6#焦炉M40均值" align="center" prop="c3ljM40Jz" />
      <el-table-column label="5#6#焦炉M10高/低" align="center" prop="c3ljM10Gd" />
      <el-table-column label="5#6#焦炉M10均值" align="center" prop="c3ljM10Jz" />
      <el-table-column label="5#6#焦炉水分高/低" align="center" prop="c3ljSfGd" />
      <el-table-column label="5#6#焦炉水分均值" align="center" prop="c3ljSfJz" />
      <el-table-column label="5#6#焦炉挥发分高/低" align="center" prop="c3ljHffGd" />
      <el-table-column label="5#6#焦炉挥发分均值" align="center" prop="c3ljHffJz" />
      <el-table-column label="5#6#焦炉焦末含量高/低" align="center" prop="c3ljJmhlGd" />
      <el-table-column label="5#6#焦炉焦末含量均值" align="center" prop="c3ljJmhlJz" />
      <el-table-column label="5#6#焦炉电耗" align="center" prop="c3ljNydhDh" />
      <el-table-column label="5#6#焦炉燃耗" align="center" prop="c3ljNydhRh" />
      <el-table-column label="5#6#焦炉水耗" align="center" prop="c3ljNydhSh" />
      <el-table-column label="5#6#焦炉当日炉数" align="center" prop="c3ljLsDr" />
      <el-table-column label="5#6#焦炉当日炉数" align="center" prop="c3ljLsLj" />
      <el-table-column label="5#焦炉热工系数K安" align="center" prop="c3ljRgxs5lka" />
      <el-table-column label="6#焦炉热工系数K安" align="center" prop="c3ljRgxs6lka" />
      <el-table-column label="5#焦炉热工系数K均" align="center" prop="c3ljRgxs5lkj" />
      <el-table-column label="6#焦炉热工系数K均" align="center" prop="c3ljRgxs6lkj" />
      <el-table-column label="全焦率目标" align="center" prop="cQjlMb" />
      <el-table-column label="全焦率实际" align="center" prop="cQjlSj" />
      <el-table-column label="冶金焦率目标" align="center" prop="cYjjlMb" />
      <el-table-column label="冶金焦率实际" align="center" prop="cYjjlSj" />
      <el-table-column label="焦油收率目标" align="center" prop="cJyslMb" />
      <el-table-column label="焦油收率实际" align="center" prop="cJyslSj" />
      <el-table-column label="轻苯收率目标" align="center" prop="cQbslMb" />
      <el-table-column label="轻苯收率实际" align="center" prop="cQbslSj" />
      <el-table-column label="硫铵收率目标" align="center" prop="cLaslMb" />
      <el-table-column label="硫铵收率实际" align="center" prop="cLaslSj" />
      <el-table-column label="肥煤配比" align="center" prop="cPmbFm" />
      <el-table-column label="高硫肥煤配比" align="center" prop="cPmbGlfm" />
      <el-table-column label="焦1煤配比" align="center" prop="cPmbJ1m" />
      <el-table-column label="进口焦煤配比" align="center" prop="cPmbJkjm" />
      <el-table-column label="高硫焦煤配比" align="center" prop="cPmbGljm" />
      <el-table-column label="中硫1/3配比" align="center" prop="cPmbZl1b3" />
      <el-table-column label="气煤配比" align="center" prop="cPmbQm" />
      <el-table-column label="瘦煤配比" align="center" prop="cPmbSm" />
      <el-table-column label="删除标志" align="center" prop="cState" />
      <el-table-column label="备注" align="center" prop="remake" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['scrb:jh:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['scrb:jh:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改能源公司生产日报录入对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
      <el-form-item label="日期" prop="cDate" >
                <el-date-picker
                  v-model="form.cDate"
                  :disabled=!isInsert
                  type="date"
                  size="small"
                  value-format="yyyy-MM-dd"
                  placeholder="请输入日期">
                </el-date-picker>
              </el-form-item>

        <table>
          <caption>冶金焦质量</caption>
          <tr>
            <td width="80px"></td>
            <td>灰分(≤13%)</td>
            <td>硫分(≤0.85%)</td>
            <td>M40(≥85%)</td>
            <td>M10(≤7%)</td>
            <td>水分(湿≤7%、干≤0.8%)</td>
            <td>挥发分(≤1.9%)</td>
            <td>焦末含量</td>
            <td>热强度65%</td>
          </tr>
          <tr>
            <td>1#2#焦炉<br>高/低</td>
            <td><el-input v-model="form.c1ljHfGd" placeholder="请输入1#2#焦炉灰分高/低" /></td>
            <td> <el-input v-model="form.c1ljLfGd" placeholder="请输入1#2#焦炉硫分高/低" /></td>
            <td><el-input v-model="form.c1ljM40Gd" placeholder="请输入1#2#焦炉M40高/低" /></td>
            <td><el-input v-model="form.c1ljM10Gd" placeholder="请输入1#2#焦炉M10高/低" /></td>
            <td><el-input v-model="form.c1ljSfGd" placeholder="请输入1#2#焦炉水分高/低" /></td>
            <td><el-input v-model="form.c1ljHffGd" placeholder="请输入1#2#焦炉挥发分高/低" /></td>
            <td><el-input v-model="form.c1ljJmhlGd" placeholder="请输入1#2#焦炉焦末含量高/低" /></td>
            <td><el-input v-model="form.zfree3" placeholder="请输入1#2#焦炉热强度" /></td>
          </tr>
          <tr>
            <td>1#2#焦炉<br>均值</td>
            <td><el-input v-model="form.c1ljHfJz" placeholder="请输入1#2#焦炉灰分均值" /></td>
            <td><el-input v-model="form.c1ljLfJz" placeholder="请输入1#2#焦炉硫分均值" /></td>
            <td><el-input v-model="form.c1ljM40Jz" placeholder="请输入1#2#焦炉M40均值" /></td>
            <td><el-input v-model="form.c1ljM10Jz" placeholder="请输入1#2#焦炉M10均值" /></td>
            <td><el-input v-model="form.c1ljSfJz" placeholder="请输入1#2#焦炉水分均值" /></td>
            <td><el-input v-model="form.c1ljHffJz" placeholder="请输入1#2#焦炉挥发分均值" /></td>
            <td><el-input v-model="form.c1ljJmhlJz" placeholder="请输入1#2#焦炉焦末含量均值" /></td>
          </tr>
          <tr>
            <td>5#6#焦炉<br>高/低</td>
            <td><el-input v-model="form.c3ljHfGd" placeholder="请输入5#6#焦炉灰分高/低" /></td>
            <td><el-input v-model="form.c3ljLfGd" placeholder="请输入5#6#焦炉硫分高/低" /></td>
            <td><el-input v-model="form.c3ljM40Gd" placeholder="请输入5#6#焦炉M40高/低" /></td>
            <td><el-input v-model="form.c3ljM10Gd" placeholder="请输入5#6#焦炉M10高/低" /></td>
            <td><el-input v-model="form.c3ljSfGd" placeholder="请输入5#6#焦炉水分高/低" /></td>
            <td><el-input v-model="form.c3ljHffGd" placeholder="请输入5#6#焦炉挥发分高/低" /></td>
            <td><el-input v-model="form.c3ljJmhlGd" placeholder="请输入5#6#焦炉焦末含量高/低" /></td>
            <td><el-input v-model="form.zfree4" placeholder="请输入5#6#焦炉热强度" /></td>
          </tr>
          <tr>
            <td>5#6#焦炉<br>均值</td>
            <td><el-input v-model="form.c3ljHfJz" placeholder="请输入5#6#焦炉灰分均值" /></td>
            <td><el-input v-model="form.c3ljLfJz" placeholder="请输入5#6#焦炉硫分均值" /></td>
            <td><el-input v-model="form.c3ljM40Jz" placeholder="请输入5#6#焦炉M40均值" /></td>
            <td><el-input v-model="form.c3ljM10Jz" placeholder="请输入5#6#焦炉M10均值" /></td>
            <td><el-input v-model="form.c3ljSfJz" placeholder="请输入5#6#焦炉水分均值" /></td>
            <td><el-input v-model="form.c3ljHffJz" placeholder="请输入5#6#焦炉挥发分均值" /></td>
            <td><el-input v-model="form.c3ljJmhlJz" placeholder="请输入5#6#焦炉焦末含量均值" /></td>
          </tr>
        </table>
        <table>
          <caption></caption>
          <tr>
            <td width="80px"></td>
            <td>全焦率</td>
            <td>冶金焦率</td>
            <td>焦油收率</td>
            <td>轻苯收率</td>
            <td>硫铵收率</td>
          </tr>
          <tr>
            <td>目标</td>
            <td><el-input v-model="form.cQjlMb" placeholder="请输入全焦率目标" /></td>
            <td><el-input v-model="form.cYjjlMb" placeholder="请输入冶金焦率目标" /></td>
            <td><el-input v-model="form.cJyslMb" placeholder="请输入焦油收率目标" /></td>
            <td><el-input v-model="form.cQbslMb" placeholder="请输入轻苯收率目标" /></td>
            <td><el-input v-model="form.cLaslMb" placeholder="请输入硫铵收率目标" /></td>
          </tr>
          <tr>
            <td>实际</td>
            <td><el-input v-model="form.cQjlSj" placeholder="请输入全焦率实际" /></td>
            <td><el-input v-model="form.cYjjlSj" placeholder="请输入冶金焦率实际" /></td>
            <td><el-input v-model="form.cJyslSj" placeholder="请输入焦油收率实际" /></td>
            <td><el-input v-model="form.cQbslSj" placeholder="请输入轻苯收率实际" /></td>
            <td><el-input v-model="form.cLaslSj" placeholder="请输入硫铵收率实际" /></td>
          </tr>
        </table>
        <table>
          <caption>热工系数</caption>
          <tr>
            <td width="80px"></td>
            <td>1#焦炉(≥0.80)</td>
            <td>2#焦炉(≥0.80)</td>
            <td>5#焦炉(≥0.83)</td>
            <td>6#焦炉(≥0.83)</td>
          </tr>
          <tr>
            <td>K安</td>
            <td><el-input v-model="form.c1ljRgxs1lka" placeholder="请输入1#焦炉热工系数K安" /></td>
            <td><el-input v-model="form.c1ljRgxs2lka" placeholder="请输入2#焦炉热工系数K安" /></td>
            <td><el-input v-model="form.c3ljRgxs5lka" placeholder="请输入5#焦炉热工系数K安" /></td>
            <td> <el-input v-model="form.c3ljRgxs6lka" placeholder="请输入6#焦炉热工系数K安" /></td>
          </tr>
          <tr>
            <td>K均</td>
            <td><el-input v-model="form.c1ljRgxs1lkj" placeholder="请输入1#焦炉热工系数K均" /></td>
            <td><el-input v-model="form.c1ljRgxs2lkj" placeholder="请输入2#焦炉热工系数K均" /></td>
            <td><el-input v-model="form.c3ljRgxs5lkj" placeholder="请输入5#焦炉热工系数K均" /></td>
            <td><el-input v-model="form.c3ljRgxs6lkj" placeholder="请输入6#焦炉热工系数K均" /></td>
          </tr>
        </table>
        <table>
          <caption></caption>
          <tr>
            <td width="80px"></td>
            <td>当日炉数</td>
            <td>累计炉数</td>
            <td>当日产量</td>
          </tr>
          <tr>
            <td>1#2#焦炉</td>
            <td><el-input v-model="form.c1ljLsDr" placeholder="请输入1#2#焦炉当日炉数" /></td>
            <td><el-input v-model="form.c1ljLsLj" placeholder="请输入1#2#焦炉累计炉数" /></td>
            <!--<td><el-input v-model="form.zfree1" placeholder="请输入1#2#焦炉当日产量" /></td>-->
            <td> </td>
          </tr>
          <tr>
            <td>5#6#焦炉</td>
            <td><el-input v-model="form.c3ljLsDr" placeholder="请输入5#6#焦炉当日炉数" /></td>
            <td><el-input v-model="form.c3ljLsLj" placeholder="请输入5#6#焦炉累计炉数" /></td>
            <!--<td><el-input v-model="form.zfree2" placeholder="请输入5#6#焦炉当日产量" /></td>-->
            <td> </td>
          </tr>
        </table>
        <table>
          <caption>能源单耗</caption>
          <tr>
            <td width="60px"></td>
            <td>电耗</td>
            <td>燃耗</td>
            <td>水耗</td>
          </tr>
          <tr>
            <td>焦化工序</td>
            <td><el-input v-model="form.c1ljNydhDh" placeholder="请输入1#2#焦炉电耗" /></td>
            <td><el-input v-model="form.c1ljNydhRh" placeholder="请输入1#2#焦炉燃耗" /></td>
            <td> <el-input v-model="form.c1ljNydhSh" placeholder="请输入1#2#焦炉水耗" /></td>
          </tr>
          <!--<tr>-->
            <!--<td>5#6#焦炉</td>-->
            <!--<td><el-input v-model="form.c3ljNydhDh" placeholder="请输入5#6#焦炉电耗" /></td>-->
            <!--<td><el-input v-model="form.c3ljNydhRh" placeholder="请输入5#6#焦炉燃耗" /></td>-->
            <!--<td><el-input v-model="form.c3ljNydhSh" placeholder="请输入5#6#焦炉水耗" /></td>-->
          <!--</tr>-->
        </table>
        <table>
          <caption>配煤比</caption>
          <tr>
            <td>肥 煤</td>
            <td><el-input v-model="form.cPmbFm" placeholder="请输入肥煤配比" /></td>
            <td>中硫1/3</td>
            <td><el-input v-model="form.cPmbZl1b3" placeholder="请输入中硫1/3配比" /></td>
          </tr>
       <tr>
         <td>高硫肥煤</td>
         <td><el-input v-model="form.cPmbGlfm" placeholder="请输入高硫肥煤配比" /></td>
         <td>气 煤</td>
         <td><el-input v-model="form.cPmbQm" placeholder="请输入气煤配比" /></td>
       </tr>
          <tr>
            <td>焦1煤</td>
            <td> <el-input v-model="form.cPmbJ1m" placeholder="请输入焦1煤配比" /></td>
            <td>瘦 煤</td>
            <td><el-input v-model="form.cPmbSm" placeholder="请输入瘦煤配比" /></td>
          </tr>
          <tr>
            <td>进口焦煤</td>
            <td><el-input v-model="form.cPmbJkjm" placeholder="请输入进口焦煤配比" /></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td>高硫焦煤</td>
            <td><el-input v-model="form.cPmbGljm" placeholder="请输入高硫焦煤配比" /></td>
            <td></td>
            <td></td>
          </tr>
        </table>

        <!--<el-form-item label="1#2#焦炉灰分高/低" prop="c1ljHfGd">-->
          <!--<el-input v-model="form.c1ljHfGd" placeholder="请输入1#2#焦炉灰分高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉灰分均值" prop="c1ljHfJz">-->
          <!--<el-input v-model="form.c1ljHfJz" placeholder="请输入1#2#焦炉灰分均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉硫分高/低" prop="c1ljLfGd">-->
          <!--<el-input v-model="form.c1ljLfGd" placeholder="请输入1#2#焦炉硫分高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉硫分均值" prop="c1ljLfJz">-->
          <!--<el-input v-model="form.c1ljLfJz" placeholder="请输入1#2#焦炉硫分均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉M40高/低" prop="c1ljM40Gd">-->
          <!--<el-input v-model="form.c1ljM40Gd" placeholder="请输入1#2#焦炉M40高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉M40均值" prop="c1ljM40Jz">-->
          <!--<el-input v-model="form.c1ljM40Jz" placeholder="请输入1#2#焦炉M40均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉M10高/低" prop="c1ljM10Gd">-->
          <!--<el-input v-model="form.c1ljM10Gd" placeholder="请输入1#2#焦炉M10高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉M10均值" prop="c1ljM10Jz">-->
          <!--<el-input v-model="form.c1ljM10Jz" placeholder="请输入1#2#焦炉M10均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉水分高/低" prop="c1ljSfGd">-->
          <!--<el-input v-model="form.c1ljSfGd" placeholder="请输入1#2#焦炉水分高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉水分均值" prop="c1ljSfJz">-->
          <!--<el-input v-model="form.c1ljSfJz" placeholder="请输入1#2#焦炉水分均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉挥发分高/低" prop="c1ljHffGd">-->
          <!--<el-input v-model="form.c1ljHffGd" placeholder="请输入1#2#焦炉挥发分高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉挥发分均值" prop="c1ljHffJz">-->
          <!--<el-input v-model="form.c1ljHffJz" placeholder="请输入1#2#焦炉挥发分均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉焦末含量高/低" prop="c1ljJmhlGd">-->
          <!--<el-input v-model="form.c1ljJmhlGd" placeholder="请输入1#2#焦炉焦末含量高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉焦末含量均值" prop="c1ljJmhlJz">-->
          <!--<el-input v-model="form.c1ljJmhlJz" placeholder="请输入1#2#焦炉焦末含量均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉电耗" prop="c1ljNydhDh">-->
          <!--<el-input v-model="form.c1ljNydhDh" placeholder="请输入1#2#焦炉电耗" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉燃耗" prop="c1ljNydhRh">-->
          <!--<el-input v-model="form.c1ljNydhRh" placeholder="请输入1#2#焦炉燃耗" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉水耗" prop="c1ljNydhSh">-->
          <!--<el-input v-model="form.c1ljNydhSh" placeholder="请输入1#2#焦炉水耗" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉当日炉数" prop="c1ljLsDr">-->
          <!--<el-input v-model="form.c1ljLsDr" placeholder="请输入1#2#焦炉当日炉数" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#2#焦炉当日炉数" prop="c1ljLsLj">-->
          <!--<el-input v-model="form.c1ljLsLj" placeholder="请输入1#2#焦炉当日炉数" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#焦炉热工系数K安" prop="c1ljRgxs1lka">-->
          <!--<el-input v-model="form.c1ljRgxs1lka" placeholder="请输入1#焦炉热工系数K安" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="2#焦炉热工系数K安" prop="c1ljRgxs2lka">-->
          <!--<el-input v-model="form.c1ljRgxs2lka" placeholder="请输入2#焦炉热工系数K安" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="1#焦炉热工系数K均" prop="c1ljRgxs1lkj">-->
          <!--<el-input v-model="form.c1ljRgxs1lkj" placeholder="请输入1#焦炉热工系数K均" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="2#焦炉热工系数K均" prop="c1ljRgxs2lkj">-->
          <!--<el-input v-model="form.c1ljRgxs2lkj" placeholder="请输入2#焦炉热工系数K均" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉灰分高/低" prop="c3ljHfGd">-->
          <!--<el-input v-model="form.c3ljHfGd" placeholder="请输入5#6#焦炉灰分高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉灰分均值" prop="c3ljHfJz">-->
          <!--<el-input v-model="form.c3ljHfJz" placeholder="请输入5#6#焦炉灰分均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉硫分高/低" prop="c3ljLfGd">-->
          <!--<el-input v-model="form.c3ljLfGd" placeholder="请输入5#6#焦炉硫分高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉硫分均值" prop="c3ljLfJz">-->
          <!--<el-input v-model="form.c3ljLfJz" placeholder="请输入5#6#焦炉硫分均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉M40高/低" prop="c3ljM40Gd">-->
          <!--<el-input v-model="form.c3ljM40Gd" placeholder="请输入5#6#焦炉M40高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉M40均值" prop="c3ljM40Jz">-->
          <!--<el-input v-model="form.c3ljM40Jz" placeholder="请输入5#6#焦炉M40均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉M10高/低" prop="c3ljM10Gd">-->
          <!--<el-input v-model="form.c3ljM10Gd" placeholder="请输入5#6#焦炉M10高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉M10均值" prop="c3ljM10Jz">-->
          <!--<el-input v-model="form.c3ljM10Jz" placeholder="请输入5#6#焦炉M10均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉水分高/低" prop="c3ljSfGd">-->
          <!--<el-input v-model="form.c3ljSfGd" placeholder="请输入5#6#焦炉水分高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉水分均值" prop="c3ljSfJz">-->
          <!--<el-input v-model="form.c3ljSfJz" placeholder="请输入5#6#焦炉水分均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉挥发分高/低" prop="c3ljHffGd">-->
          <!--<el-input v-model="form.c3ljHffGd" placeholder="请输入5#6#焦炉挥发分高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉挥发分均值" prop="c3ljHffJz">-->
          <!--<el-input v-model="form.c3ljHffJz" placeholder="请输入5#6#焦炉挥发分均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉焦末含量高/低" prop="c3ljJmhlGd">-->
          <!--<el-input v-model="form.c3ljJmhlGd" placeholder="请输入5#6#焦炉焦末含量高/低" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉焦末含量均值" prop="c3ljJmhlJz">-->
          <!--<el-input v-model="form.c3ljJmhlJz" placeholder="请输入5#6#焦炉焦末含量均值" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉电耗" prop="c3ljNydhDh">-->
          <!--<el-input v-model="form.c3ljNydhDh" placeholder="请输入5#6#焦炉电耗" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉燃耗" prop="c3ljNydhRh">-->
          <!--<el-input v-model="form.c3ljNydhRh" placeholder="请输入5#6#焦炉燃耗" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉水耗" prop="c3ljNydhSh">-->
          <!--<el-input v-model="form.c3ljNydhSh" placeholder="请输入5#6#焦炉水耗" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉当日炉数" prop="c3ljLsDr">-->
          <!--<el-input v-model="form.c3ljLsDr" placeholder="请输入5#6#焦炉当日炉数" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#6#焦炉当日炉数" prop="c3ljLsLj">-->
          <!--<el-input v-model="form.c3ljLsLj" placeholder="请输入5#6#焦炉当日炉数" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#焦炉热工系数K安" prop="c3ljRgxs5lka">-->
          <!--<el-input v-model="form.c3ljRgxs5lka" placeholder="请输入5#焦炉热工系数K安" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="6#焦炉热工系数K安" prop="c3ljRgxs6lka">-->
          <!--<el-input v-model="form.c3ljRgxs6lka" placeholder="请输入6#焦炉热工系数K安" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="5#焦炉热工系数K均" prop="c3ljRgxs5lkj">-->
          <!--<el-input v-model="form.c3ljRgxs5lkj" placeholder="请输入5#焦炉热工系数K均" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="6#焦炉热工系数K均" prop="c3ljRgxs6lkj">-->
          <!--<el-input v-model="form.c3ljRgxs6lkj" placeholder="请输入6#焦炉热工系数K均" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="全焦率目标" prop="cQjlMb">-->
          <!--<el-input v-model="form.cQjlMb" placeholder="请输入全焦率目标" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="全焦率实际" prop="cQjlSj">-->
          <!--<el-input v-model="form.cQjlSj" placeholder="请输入全焦率实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="冶金焦率目标" prop="cYjjlMb">-->
          <!--<el-input v-model="form.cYjjlMb" placeholder="请输入冶金焦率目标" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="冶金焦率实际" prop="cYjjlSj">-->
          <!--<el-input v-model="form.cYjjlSj" placeholder="请输入冶金焦率实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="焦油收率目标" prop="cJyslMb">-->
          <!--<el-input v-model="form.cJyslMb" placeholder="请输入焦油收率目标" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="焦油收率实际" prop="cJyslSj">-->
          <!--<el-input v-model="form.cJyslSj" placeholder="请输入焦油收率实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轻苯收率目标" prop="cQbslMb">-->
          <!--<el-input v-model="form.cQbslMb" placeholder="请输入轻苯收率目标" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轻苯收率实际" prop="cQbslSj">-->
          <!--<el-input v-model="form.cQbslSj" placeholder="请输入轻苯收率实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="硫铵收率目标" prop="cLaslMb">-->
          <!--<el-input v-model="form.cLaslMb" placeholder="请输入硫铵收率目标" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="硫铵收率实际" prop="cLaslSj">-->
          <!--<el-input v-model="form.cLaslSj" placeholder="请输入硫铵收率实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="肥煤配比" prop="cPmbFm">-->
          <!--<el-input v-model="form.cPmbFm" placeholder="请输入肥煤配比" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="高硫肥煤配比" prop="cPmbGlfm">-->
          <!--<el-input v-model="form.cPmbGlfm" placeholder="请输入高硫肥煤配比" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="焦1煤配比" prop="cPmbJ1m">-->
          <!--<el-input v-model="form.cPmbJ1m" placeholder="请输入焦1煤配比" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="进口焦煤配比" prop="cPmbJkjm">-->
          <!--<el-input v-model="form.cPmbJkjm" placeholder="请输入进口焦煤配比" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="高硫焦煤配比" prop="cPmbGljm">-->
          <!--<el-input v-model="form.cPmbGljm" placeholder="请输入高硫焦煤配比" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="中硫1/3配比" prop="cPmbZl1b3">-->
          <!--<el-input v-model="form.cPmbZl1b3" placeholder="请输入中硫1/3配比" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="气煤配比" prop="cPmbQm">-->
          <!--<el-input v-model="form.cPmbQm" placeholder="请输入气煤配比" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="瘦煤配比" prop="cPmbSm">-->
          <!--<el-input v-model="form.cPmbSm" placeholder="请输入瘦煤配比" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="删除标志" prop="cState">-->
          <!--<el-input v-model="form.cState" placeholder="请输入删除标志" />-->
        <!--</el-form-item>-->
        <el-form-item label="备注" prop="remake">
          <el-input v-model="form.remake" placeholder="请输入备注" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listJh, getJh, delJh, addJh, updateJh } from "@/api/scrb/jh";

export default {
  name: "Jh",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 能源公司生产日报录入表格数据
      jhList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        c1ljHfGd: null,
        c1ljHfJz: null,
        c1ljLfGd: null,
        c1ljLfJz: null,
        c1ljM40Gd: null,
        c1ljM40Jz: null,
        c1ljM10Gd: null,
        c1ljM10Jz: null,
        c1ljSfGd: null,
        c1ljSfJz: null,
        c1ljHffGd: null,
        c1ljHffJz: null,
        c1ljJmhlGd: null,
        c1ljJmhlJz: null,
        c1ljNydhDh: null,
        c1ljNydhRh: null,
        c1ljNydhSh: null,
        c1ljLsDr: null,
        c1ljLsLj: null,
        c1ljRgxs1lka: null,
        c1ljRgxs2lka: null,
        c1ljRgxs1lkj: null,
        c1ljRgxs2lkj: null,
        c3ljHfGd: null,
        c3ljHfJz: null,
        c3ljLfGd: null,
        c3ljLfJz: null,
        c3ljM40Gd: null,
        c3ljM40Jz: null,
        c3ljM10Gd: null,
        c3ljM10Jz: null,
        c3ljSfGd: null,
        c3ljSfJz: null,
        c3ljHffGd: null,
        c3ljHffJz: null,
        c3ljJmhlGd: null,
        c3ljJmhlJz: null,
        c3ljNydhDh: null,
        c3ljNydhRh: null,
        c3ljNydhSh: null,
        c3ljLsDr: null,
        c3ljLsLj: null,
        c3ljRgxs5lka: null,
        c3ljRgxs6lka: null,
        c3ljRgxs5lkj: null,
        c3ljRgxs6lkj: null,
        cQjlMb: null,
        cQjlSj: null,
        cYjjlMb: null,
        cYjjlSj: null,
        cJyslMb: null,
        cJyslSj: null,
        cQbslMb: null,
        cQbslSj: null,
        cLaslMb: null,
        cLaslSj: null,
        cPmbFm: null,
        cPmbGlfm: null,
        cPmbJ1m: null,
        cPmbJkjm: null,
        cPmbGljm: null,
        cPmbZl1b3: null,
        cPmbQm: null,
        cPmbSm: null,
        cState: null,
        remake: null,
        zfree1: null,
        zfree2: null,
        zfree3: null,
        zfree4: null,
        zfree5: null,
        zfree6: null,
        zfree7: null,
        zfree8: null,
        zfree9: null,
        zfree10: null,
        zfree11: null,
        zfree12: null,
        zfree13: null,
        zfree14: null,
        zfree15: null,
        zfree16: null,
        zfree17: null,
        zfree18: null,
        zfree19: null,
        zfree20: null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      },
       isInsert:true,
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询能源公司生产日报录入列表 */
    getList() {
      this.loading = true;
      listJh(this.queryParams).then(response => {
        this.jhList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        cDate: null,
        c1ljHfGd: null,
        c1ljHfJz: null,
        c1ljLfGd: null,
        c1ljLfJz: null,
        c1ljM40Gd: null,
        c1ljM40Jz: null,
        c1ljM10Gd: null,
        c1ljM10Jz: null,
        c1ljSfGd: null,
        c1ljSfJz: null,
        c1ljHffGd: null,
        c1ljHffJz: null,
        c1ljJmhlGd: null,
        c1ljJmhlJz: null,
        c1ljNydhDh: null,
        c1ljNydhRh: null,
        c1ljNydhSh: null,
        c1ljLsDr: null,
        c1ljLsLj: null,
        c1ljRgxs1lka: null,
        c1ljRgxs2lka: null,
        c1ljRgxs1lkj: null,
        c1ljRgxs2lkj: null,
        c3ljHfGd: null,
        c3ljHfJz: null,
        c3ljLfGd: null,
        c3ljLfJz: null,
        c3ljM40Gd: null,
        c3ljM40Jz: null,
        c3ljM10Gd: null,
        c3ljM10Jz: null,
        c3ljSfGd: null,
        c3ljSfJz: null,
        c3ljHffGd: null,
        c3ljHffJz: null,
        c3ljJmhlGd: null,
        c3ljJmhlJz: null,
        c3ljNydhDh: null,
        c3ljNydhRh: null,
        c3ljNydhSh: null,
        c3ljLsDr: null,
        c3ljLsLj: null,
        c3ljRgxs5lka: null,
        c3ljRgxs6lka: null,
        c3ljRgxs5lkj: null,
        c3ljRgxs6lkj: null,
        cQjlMb: null,
        cQjlSj: null,
        cYjjlMb: null,
        cYjjlSj: null,
        cJyslMb: null,
        cJyslSj: null,
        cQbslMb: null,
        cQbslSj: null,
        cLaslMb: null,
        cLaslSj: null,
        cPmbFm: null,
        cPmbGlfm: null,
        cPmbJ1m: null,
        cPmbJkjm: null,
        cPmbGljm: null,
        cPmbZl1b3: null,
        cPmbQm: null,
        cPmbSm: null,
        cState: null,
        remake: null,
        zfree1: null,
        zfree2: null,
        zfree3: null,
        zfree4: null,
        zfree5: null,
        zfree6: null,
        zfree7: null,
        zfree8: null,
        zfree9: null,
        zfree10: null,
        zfree11: null,
        zfree12: null,
        zfree13: null,
        zfree14: null,
        zfree15: null,
        zfree16: null,
        zfree17: null,
        zfree18: null,
        zfree19: null,
        zfree20: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.cDate)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.isInsert=true;
      this.title = "添加能源公司生产日报录入";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      this.isInsert=false;
      const cDate = row.cDate || this.ids
      getJh(cDate).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改能源公司生产日报录入";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (!this.isInsert) {
            updateJh(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addJh(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const cDates = row.cDate || this.ids;
      this.$modal.confirm('是否确认删除能源公司生产日报录入编号为"' + cDates + '"的数据项？').then(function() {
        return delJh(cDates);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('scrb/jh/export', {
        ...this.queryParams
      }, `jh_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
<style lang="scss" scoped>
  table
  {
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
  }
  table td, table th
  {
    border: 1px solid #cad9ea;
    color: #666;
    height: 30px;
  }
  table thead th
  {
    background-color: #CCE8EB;
    width: 100px;
  }
  table tr:nth-child(odd)
  {
    background: #fff;
  }
  table tr:nth-child(even)
  {
    background: #F5FAFA;
  }
</style>
